﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model
{
    // 中药药方信息
    public class PrescriptionInfo : IHydratable
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
        public int UserId { get; set; }
        public int DoctorId { get; set; }
        public string Name { get; set; }
        public double Score { get; set; }
        public double AverageScore { get; set; }
        public int DiseaseId { get; set; }
        public string DiseaseName { get; set; }
        public bool IsClassic { get; set; }
        public string Description { get; set; }
        public string Comment { get; set; }
        public DateTime CreateTime { get; set; }

        public string DoctorName { get; set; }
        public string DoctorHospital { get; set; }

        public int UserCount { get; set; }
        public List<int> UserIds { get; set; }

        // Default Constructor
        public PrescriptionInfo()
        {
            Id = ParentId = UserId = DoctorId = DiseaseId = -1;
            Name = DiseaseName = Description = Comment =  string.Empty;
            AverageScore = Score = 0.0d;
            IsClassic = false;
            CreateTime = DateTime.MinValue;

            DoctorName = DoctorHospital = string.Empty;

            UserCount = 0;
            UserIds = null;
        }

        #region IHydratable 成员
        public bool Fill(System.Data.IDataReader dr)
        {
            return false;
        }
        #endregion
    }
}
